package com.slz3.business.module.systemManagement.sysRoleMenu.steward;

import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.response.ResInfo;
import com.slz3.business.module.systemManagement.sysRoleMenu.domain.SysRoleMenu;
import com.slz3.business.module.systemManagement.sysRoleMenu.domain.SysRoleMenuCondition;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class SysRoleMenuResAtomic extends SysRoleMenuResExecutor {

    public Mono<ServerResponse> add_$SysRoleMenuUpdateLock(ServerRequest req, SysRoleMenu sysRoleMenu) {
        return SysRoleMenuResSafeValid.add(req, sysRoleMenu) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.add(req, sysRoleMenu);
    }
}
